OpenBuildings GenerativeComponents Help

Storing a Value into a Variable

To store a value into a variable, you use the assignment operator (an equals-sign character).

General Form

name = expression

This means, "calculate the expression and store its result into the variable, replacing the variable's previous contents."

Examples

poleCount = 300
levelName = 'Lighting Fixtures'
isImageReversed = false

As a convenience, you can declare a new variable and store a value into it at the same time.

Example

int cardsInDeck = 52